package com.eb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eb.domain.Likes;
import com.eb.result.Result;
import com.eb.vo.LikeInfoVO;

public interface LikesService extends IService<Likes> {
    /**
     * 统计帖子的点赞数量
     * @param innovationId
     * @return
     */
    Long countLikesByInnovationId(Integer innovationId);

    /**
     * 添加点赞
     * @param innovationId
     * @return
     */
    LikeInfoVO addLike(Integer innovationId);

    /**
     * 取消点赞
     * @param innovationId
     * @return
     */
    LikeInfoVO deleteLike(Integer innovationId);
}
